<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>骑驴网-职场文章列表</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="icon" href="favicon.ico" type="image/x-icon"/>
	<link rel="shortcut icon" href="favicon.ico" type="image/x-icon"/>
	<link rel="stylesheet" type="text/css" href="css/comm.css">
	<style type="text/css">
	body {
		/*background-image: url("images/bdybg.jpg");*/
		color: #333;
	}
	.companyList {
		width: 980px;
		text-align: left;
		padding: 10px;
		background-color: #FFFFFF;
		border-top-left-radius: 20px;
		border-top-right-radius: 20px;
		border-bottom-left-radius: 20px;
		border-bottom-right-radius: 20px;
		font-size: 12px;
		/*background-image: url("../images/grey.gif");*/
	}
	.companyList ul {
		list-style: none;	
	}
	.companyList li {
		/*display: block;*/
		padding: 2px 0px;
		margin: 2px 0px; 
	}
	</style>
  </head>
  <body>
  <%@ include file="../header.jsp" %>
    <center>
    <div style="width:980px;text-align:left;margin:10px;">
    	<div style="float:left;">
		<img alt="骑驴网" src="images/qilv.png">
	</div>
	<div style="float:left;font-size:24px;font-weight:bold;padding:22px 0px 5px 15px;">
		${param.atype==3?'职场健康':''}
		${param.atype==2?'职场法案':''}
		${param.atype==4?'职场英语':''}
		${param.atype==1?'职场测试':''}
	</div>
	<div style="border:0px;border-top:2px solid #4273B3;clear:both;"></div>
    <div class="companyList">
    	<ul style="margin:0px;padding:0px;">
			<li></li>
			<c:forEach items="${pv.records}" var="article" varStatus="vs">
			  <li style="margin-top:0px;padding-top:3px;height:auto;overflow:hidden;">
			  <a target="_blank" style="margin-top:0px;padding-top:0px;font-size:13px;" class="compaHref" href="article.html?method=showArticle&id=${article.id}">${fn:substring(article.title,0,50)}</a>
			      共有${article.commentCount}条评论&nbsp;|&nbsp;包含${fn:length(article.content)}字&nbsp;|&nbsp;${article.author}发表于${article.atime}
			  </li>
			  <c:if test="${fn:length(pv.records) != vs.count}">
			  <li style="margin:0px;padding:0px;"><hr style="border:0px;border-top:1px dotted #E9EFF6;height:1px;"/></li>
			  </c:if>
			</c:forEach>
		</ul>
    </div>
    <%@ include file="../share/pager.jsp" %>
    </center>
    <%@ include file="../tailer.jsp" %>
  </body>
<script type="text/javascript">
	function topage(pageNo) {
		location.href="article.html?method=getArticleByPage&atype=${param.atype}&pageNo=" + pageNo;
	}
</script>
<script type="text/javascript" src="js/comm.js"></script>
<script type="text/javascript" src="http://v2.jiathis.com/code/jiathis_r.js?move=0" charset="utf-8"></script>
</html>
